package com.ider.launcherpackage.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import com.ider.launcherpackage.bean.AppInfo;

import java.util.List;

/**
 * Created by Administrator on 2018/9/6.
 */

public class AppAdapter extends BaseAdapter{

    private Context context;
    private List<AppInfo>appInfos;
    private LayoutInflater inflater;


    public AppAdapter(Context context,List<AppInfo>appinfos){
        this.context=context;
        this.appInfos=appinfos;
        this.inflater=LayoutInflater.from(context);
    }

    @Override
    public int getCount() {
        return appInfos.size();
    }

    @Override
    public Object getItem(int i) {
        return appInfos.get(i);
    }

    @Override
    public long getItemId(int i) {
        return i;
    }

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {


        return null;
    }

    public static class ViewHolder{
        public ImageView iconImageView;
        public TextView  appNameTextView;
        
    }
}
